package com.android.webframework;

public class TextToSpeechService extends MP3Service {


	public TextToSpeechService(RequestObject requestOb) {
		super(requestOb);
		servicesLog.setLogTag("TTS");
	}

	/**
	 * Request a service
	 * @return a response object
	 * @see ResponseObject
	 */
	public ResponseObject request() throws RequestException {
		try {
			requestOb.addParameter("url", "http://translate.google.com/translate_tts?tl=en&q="+((String)requestOb.getParameter("text")));
			return super.request();
		} catch (ObjectNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
	
}
